extends Interactable

@export var destination_point: String
@export_file("*.tscn") var destination_scene: String

enum EnteringMode {
	LEFT,
	RIGHT,
}
@export var entering_mode: EnteringMode

func init_interactable() -> void:
	action = func ():
		if Game.get_player().is_entering:
			return
		Game.change_scene(
			destination_scene,
			{
				"entry_point": destination_point,
				"entering_mode": entering_mode,
			}
		)
	
